Transforming data topic

Derive new lists.

Functions

cross<T>(Iterable<Iterable<T>> iterables) List<List<T>> Transforming data
Returns the Cartesian product of the specified iterables.
crossWith<T, R>(Iterable<Iterable<T>> iterables, R reducer(List<T>)) List<R> Transforming data
Returns the Cartesian product of the specified iterables, applying the specified reducer function to each combination of elements.
filter<T>(Iterable<T> iterable, bool test(T)) List<T> Transforming data
Returns a new list containing the values from iterable, in order, for which the given test function returns true.
map<T, R>(Iterable<T> iterable, R mapper(T)) List<R> Transforming data
Returns a new list containing the mapped values from iterable, in order, as defined by given mapper function.
merge<T>(Iterable<Iterable<T>> iterables) List<T> Transforming data
Merges the specified iterable of iterables into a single list.
pairs<T>(Iterable<T> iterable) List<(T, T)> Transforming data
Returns a list of pairs from consecutive values of the provided iterable.
pairsWith<T, R>(Iterable<T> iterable, R reducer(T, T)) List<R> Transforming data
Returns a list of values yielded by the reducer function applied to each pair of consecutive elements from the provided iterable.
transpose<T>(Iterable<Iterable<T>> matrix) List<List<T>> Transforming data
Returns a list of lists, where the ith list contains the ith element from each of the iterables in the matrix.